describe("practice-8-3",function(){
    it("每个渔夫的获得7个筐",function() {
        var arr_result = divide_equally_7_fish();
        for(var i = 0;i <arr_result.length; i ++)
        {
            var divide_detail = arr_result[i];
            expect(divide_detail.fish_a.full + divide_detail.fish_a.half + divide_detail.fish_a.empty).toBe(7);
            expect(divide_detail.fish_b.full + divide_detail.fish_b.half + divide_detail.fish_b.empty).toBe(7);
            expect(divide_detail.fish_c.full + divide_detail.fish_c.half + divide_detail.fish_c.empty).toBe(7);
        }
    });
    it("每个渔夫的获得3.5筐鱼",function() {
        var arr_result = divide_equally_7_fish();
        for(var i = 0;i <arr_result.length; i ++)
        {
            var divide_detail = arr_result[i];
            expect(1*divide_detail.fish_a.full + 0.5*divide_detail.fish_a.half).toBe(3.5);
            expect(1*divide_detail.fish_b.full + 0.5*divide_detail.fish_b.half).toBe(3.5);
            expect(1*divide_detail.fish_c.full + 0.5*divide_detail.fish_c.half).toBe(3.5);
        }
    });
});